import request from '@/utils/request'

export function fetchconsanguinityList(data) {
  return request({
    url: '/system/consanguinity/list',
    method: 'post',
    data
  })
}

export function getconsanguinity(id) {
  return request({
    url: '/system/consanguinity/detail/' + id,
    method: 'get'
  })
}

export function createconsanguinity(data) {
  return request({
    url: '/system/consanguinity/add',
    method: 'post',
    data
  })
}

export function updateconsanguinity(data) {
  return request({
    url: '/system/consanguinity/update',
    method: 'post',
    data
  })
}

export function deleteconsanguinity(ids) {
  return request({
    url: '/system/consanguinity/delete',
    method: 'post',
    data: { ids }
  })
}

export function exportconsanguinity(data) {
  return request({
    url: '/system/consanguinity/export',
    method: 'post',
    data
  })
}

